package com.haoniu.module.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.haoniu.module.mapper.PlayRulesMapper;
import com.haoniu.module.domain.database.PlayRules;
import com.haoniu.module.service.PlayRulesService;
import com.haoniu.common.support.Convert;

/**
 * 玩法说明 服务层实现
 * 
 * @author houyijun
 * @date 2019-01-25
 */
@Service
public class PlayRulesServiceImpl implements PlayRulesService
{
	@Autowired
	private PlayRulesMapper playRulesMapper;

	/**
     * 查询玩法说明信息
     * 
     * @param id 玩法说明ID
     * @return 玩法说明信息
     */
    @Override
	public PlayRules selectPlayRulesById(Integer id) {
	    return playRulesMapper.selectPlayRulesById(id);
	}
	
	/**
     * 查询玩法说明列表
     * 
     * @param playRules 玩法说明信息
     * @return 玩法说明集合
     */
	@Override
	public List<PlayRules> selectPlayRulesList(PlayRules playRules) {
	    return playRulesMapper.selectPlayRulesList(playRules);
	}
	
    /**
     * 新增玩法说明
     * 
     * @param playRules 玩法说明信息
     * @return 结果
     */
	@Override
	public int insertPlayRules(PlayRules playRules) {
	    return playRulesMapper.insertPlayRules(playRules);
	}
	
	/**
     * 修改玩法说明
     * 
     * @param playRules 玩法说明信息
     * @return 结果
     */
	@Override
	public int updatePlayRules(PlayRules playRules) {
	    return playRulesMapper.updatePlayRules(playRules);
	}

	/**
     * 删除玩法说明对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deletePlayRulesByIds(String ids) {
		return playRulesMapper.deletePlayRulesByIds(Convert.toStrArray(ids));
	}
	
}
